Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up RASTER_Clip #676

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Conversation

kalenikaliaksandr
Copy link
Contributor

These changes improve performance of raster clip by "inlining" of rt_raster_iterator. Although rt_raster_iterator is very useful generic function that allows to merge several rasters but as I discovered it's pretty inefficient in terms of memory usage when it comes to simple case like clipping (for example several separate allocations for every pixel in a band is pretty crazy). With this change I see 1.3x-1.7x speed up for my input data.

@strk strk merged commit a19d7bd into postgis:master Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants